import { Component, Input, OnInit, Output ,EventEmitter} from '@angular/core';

@Component({
  selector: 'm-tree-list',
  templateUrl: './tree-list.component.html',
  styleUrls: ['./tree-list.component.scss']
})
export class TreeListComponent implements OnInit {
  @Output() select =  new EventEmitter()
  @Input() data:any = []
  constructor() { }

  ngOnInit() {
  }

  goTree(e){
    this.select.emit(e)
  }

}
